<template>
  <!-- 局部加载 -->
  <div
    class="page-inputloading"
    :style="{'width':width?width:'260px','line-height':height?height:'32px','height':height?height:'32px'}"
  >
    {{text ? text : '正在翻译...'}}
    <i class="demo-spin-icon-load ivu-icon ivu-icon-ios-loading"></i>
  </div>
</template>

<script>
export default {
  props: ['width', 'height', 'text'],
  data () {
    return {};
  },
  methods: {}
};
</script>

<style rel="stylesheet/less" lang="less" scoped>
.page-inputloading {
  // border: #f0f0f0 1px solid;
  position: absolute;
  width: 260px;
  height: 32px;
  line-height: 32px;
  border-radius: 4px;
  background: #fff;
  padding-left: 5px;
  z-index: 9999;

  .ivu-icon-ios-loading {
    font-size: 18px;
    color: #3b98f2;
    line-height: 32px;
    position: absolute;
    right: 4px;
  }
}
</style>
